#region License Revision: 0 Last Revised: 6/18/2008 11:00 AM
/******************************************************************************
Copyright (c) Microsoft Corporation.  All rights reserved.


This file is licensed under the Microsoft Public License (Ms-PL). A copy of the Ms-PL should accompany this file. 
If it does not, you can obtain a copy from: 

http://www.microsoft.com/resources/sharedsource/licensingbasics/publiclicense.mspx
******************************************************************************/
#endregion // License
using System;
using System.Windows.Browser;
using System.Diagnostics;
using ScriptInterop;
using System.Collections.ObjectModel;

namespace VIEWS // Virtual Earth Wrapper
{

/// <summary>Contains the itinerary information (step-by-step directions) of a VERoute Class object.</summary>
public class VERouteItinerary : JSObject
{
	/// <summary>String holding JavaScript class name</summary>
	private static string thisClass = "VERouteItinerary";
	
	/// <summary>Get the JavaScript class name</summary>
	/// <returns type="String">The class name used in JavaScript </returns>		
	public override string ClassName
	{
		get { return thisClass; }
	}

	/// <summary>Construct a C# wrapper from a ScriptObject</summary>
	/// <param name="so">A ScriptObjet from JScript.</param>
	public VERouteItinerary(ScriptObject so) : base(so) { }

	
	/// <summary name="Items">An array of VERouteItineraryItem Class objects specifying the step-by-step directions for the route.</summary> 
	public VERouteItineraryItem[] Items
	{
		get
		{
			return ConvertToArray<VERouteItineraryItem>(GetProperty<ScriptObject>("Items"));
		}
	}
} 

}
